package com.pace.day03;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.*;import org.springframework.core.env.Environment;/** * @Auther: sky * @Date: 2019/3/27 22:52 * @Description: */@Configuration  //声明配置类@ComponentScan("com.pace.day03")  //扫描包@PropertySource("classpath:jdbc.properties") //注入外部的值public class ConfigStart {//    @Bean//    @Conditional(ConditionImpl.class) //注解在方法上//    public InitBean initBean(){//        return new InitBean();//    }}